﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="showexpressorder.aspx.cs" Inherits="Html5.showexpressorder" %>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <title><%= SectionProxyData.GetSetValue(3) %></title>
    <link type="text/css" rel="stylesheet" href="css/common.css" />
    <link type="text/css" rel="stylesheet" href="css/page.css" />
    <link href="css/timeline.css" rel="stylesheet" />
    <link href="css/sweetalert.css" rel="stylesheet" />
    <script src="javascript/jquery.js"></script>

    <style type="text/css">
        .shop_detail ul li {
            width: 50%;
        }

        .orderstep40 {
            border-color: red;
        }
    </style>


</head>
<body>
    <div class="page">
        <div id="page_title">
            <a href="myexpresslist.aspx" data-ajax="false" id="back" class=" top_left"></a>
            <h1>订单详情</h1>
            <a href="Commentshop.aspx" class="reg top_right" data-ajax="false" runat="server" id="dellink">我要点评</a>
        </div>

        <div class="shop_detail" style="position: static; top: 0;">
            <ul>
                <li class="cur_con" id="order1" onclick="settable('order', 1, 2, 'cur_con', '')"><a href="javascript:">订单状态</a></li>
                <li id="order2" onclick="settable('order', 2, 2, 'cur_con', '')"><a href="javascript:">订单详情</a></li>
            </ul>
        </div>


        <div class="container">

            <div id="order_div1">

                <div id="cd-timeline" class="cd-container">
                    <asp:Repeater runat="server" ID="rptppt">
                        <ItemTemplate>





                            <div class="cd-timeline-block">
                                <div class="cd-timeline-img cd-picture">
                                    <img src="/images/send_ico.png" alt="Picture">
                                </div>

                                <%# Convert.ToInt32(Eval("stepcode")) == 40 ? "<a href='deliverlocation.aspx?id="+Eval("orderid")+"'>" :""  %>

                                <div class="cd-timeline-content <%# Convert.ToInt32(Eval("stepcode")) == 40 ? "orderstep40" :""  %>">
                                    <h2><%# Eval("title") %></h2>

                                    <p style="<%#Eval("subtitle").ToString().Length  == 0 ? "none;": ""  %>"><%# Eval("subtitle") %></p>
                                    <span class="cd-date"><%# Convert.ToDateTime(Eval("addtime")).ToString("MM月dd日 HH:mm")%></span>

                                </div>
                                <%# Convert.ToInt32(Eval("stepcode")) == 40 ? "</a>" :""  %>
                            </div>

                        </ItemTemplate>
                    </asp:Repeater>
                </div>


            </div>

            <div class="" style="display: none;" id="order_div2">
                <asp:Repeater runat="server" ID="rptorder">
                    <ItemTemplate>

                        <ul class="my_order_list">
                            <li>
                                <div class="order-tit">
                                    <span class="time" style="font-weight: bold;"><strong>发件信息</strong></span>

                                </div>

                                <div class="order-tit">
                                    <span class="time" data-icon="false">
                                        <strong>取件地址：</strong>
                                        <label class="w_txt">
                                            <%# Eval("AddressText")%>
                                        </label>
                                    </span>
                                </div>
                                <div class="order-tit">
                                    <span class="time" data-icon="false">
                                        <strong>取件电话：</strong>
                                        <label class="w_txt">
                                            <%# Eval("OrderComm")%>
                                        </label>
                                    </span>
                                </div>
                                <div class="order-tit" style="border-bottom: none;">
                                    <span class="time" data-icon="false">
                                        <strong>联系人：</strong>
                                        <label class="w_txt">
                                            <%# Eval("OrderRcver")%>
                                        </label>
                                    </span>
                                </div>

                            </li>
                        </ul>

                        <ul class="my_order_list">
                            <li>
                                <div class="order-tit">
                                    <span class="time" style="font-weight: bold;"><strong>收件信息</strong></span>

                                </div>

                                <div class="order-tit">
                                    <span class="time" data-icon="false">
                                        <strong>收件地址：</strong>
                                        <label class="w_txt">
                                            <%# Eval("OrderAddrEx")%>
                                        </label>
                                    </span>
                                </div>
                                <div class="order-tit">
                                    <span class="time" data-icon="false">
                                        <strong>收件电话：</strong>
                                        <label class="w_txt">
                                            <%# Eval("shopauthuser")%>
                                        </label>
                                    </span>
                                </div>
                                <div class="order-tit" style="border-bottom: none;">
                                    <span class="time" data-icon="false">
                                        <strong>联系人：</strong>
                                        <label class="w_txt">
                                            <%# Eval("OrderAddress")%>
                                        </label>
                                    </span>
                                </div>

                            </li>
                        </ul>


                        <ul class="my_order_list">
                            <li>
                                <div class="order-tit">
                                    <span class="time" style="font-weight: bold;"><strong>其他信息</strong></span>
                                </div>

                                <div class="order-tit">
                                    <span class="time" data-icon="false">
                                        <strong>订单号：</strong>
                                        <label class="w_txt">
                                            <%# Eval("orderid") %>[<%#WebUtility.TurnOrderState(Eval("OrderStatus").ToString())%>]
                                        </label>

                                    </span>
                                </div>


                                <div class="order-tit">
                                    <span class="time" data-icon="false">
                                        <strong>取件时间 ：</strong>

                                        <label class="w_txt">
                                            <%# Eval("SendTime")%>
                                        </label>
                                    </span>
                                </div>

                                <div class="order-tit">
                                    <span class="time" data-icon="false">
                                        <strong>备注：</strong>

                                        <label class="w_txt">
                                            <%# Eval("OrderAttach")%>
                                        </label>
                                    </span>
                                </div>

                                <div class="order-tit">
                                    <span class="time" data-icon="false">
                                        <strong>商品金额：</strong>
                                        <label class="w_txt">
                                            <%# Eval("OrderSums")%>元
                                        </label>

                                    </span>
                                </div>

                                <div class="order-tit" style="border: none;">
                                    <span class="time" data-icon="false">
                                        <strong>配送费：</strong>
                                        <label class="w_txt">
                                            <%# Eval("shopdiscountmoney")%>元
                                        </label>

                                    </span>
                                </div>

                            </li>
                        </ul>
                    </ItemTemplate>
                </asp:Repeater>

            </div>
        </div>


    </div>
</body>
</html>
<script src="javascript/jCommon.js"></script>
<script src="javascript/sweetalert.min.js"></script>


<script type="text/javascript">

    $(document).ready(function () {

        var err = request("msg");

        switch (err) {
            case "1":
                swal("", "操作成功", "success");
                break;
            default:
                break;
        }


        var review = request("review");
        if (review == "1") {
            swal("", "此订单已经评论", "warning");
        }


    })
</script>

